<?php


namespace app\controllers;


use app\models\request\ReqMenu;
use app\service\SysMenuService;

class MenuUpdateController extends BaseJsonController
{
    /**
     * @param $req ReqMenu
     * @param $userInfo
     * @return mixed
     */
    public function doService($req, $userInfo)
    {

        $service =  new SysMenuService();
        $service->update($req);
    }


    /**
     * @return null
     */
    protected function injectionReq()
    {
        return new ReqMenu();
    }


    protected function permissionName()
    {
        return "sys/menu/update";
    }
}